<%@ include file="/taglibs.jsp"%>
<jsp:directive.page import="com.sun.syndication.feed.synd.SyndFeed" />
<jsp:directive.page import="com.sun.syndication.feed.synd.SyndEntry" />
<jsp:directive.page import="com.sun.syndication.feed.synd.SyndImageImpl" />
<jsp:directive.page import="com.sun.syndication.io.SyndFeedInput" />
<jsp:directive.page import="com.sun.syndication.io.XmlReader" />
<jsp:directive.page import="java.net.URL" />
<jsp:directive.page import="java.net.URLConnection" />
<jsp:directive.page import="java.util.List" />
<jsp:directive.page import="com.sun.syndication.feed.synd.SyndContentImpl" />
<c:set var="ctx" value="${pageContext.request.contextPath}" scope="request"/>
<title>Winter War Gaming Convention - Illinois' Best Kept Gaming Secret</title>

<H2>WINTER WAR NEWS</H2>
<%
	try {
		//open up a connection to the rss feed
		String rssFeedUrl = "http://static.winterwar.org/blog/?feed=rss2";
		URLConnection feedUrl = new URL(rssFeedUrl).openConnection();

		//Create Feed Object
		SyndFeedInput input = new SyndFeedInput();
		SyndFeed feed = input.build(new XmlReader(feedUrl));
		
		//Iterate through object to get details
		List list = feed.getEntries();

		if (feed.getImage() != null) {
			SyndImageImpl image = (SyndImageImpl) feed.getImage();
			String imageInfo = "Image url:" + image.getUrl() + "\n";
			System.out.println(imageInfo);
		}
		for (int i = 0; (i < list.size() && i < 1); i++) {
			//display entry attributes
			SyndEntry entry = (SyndEntry) list.get(i);
			String display = "Entry:" + i;
			%><span class="date"><strong><font color="#FF0000">Updated <%= entry.getPublishedDate()%></font></strong><br><%
			if(i == 0){
				if (entry.getContents().size() == 1) {
					SyndContentImpl imp = (SyndContentImpl) entry
							.getContents().get(0);
					%><%=imp.getValue() %><br/>
					<center><a href="<%=entry.getLink() %>">Comment On This</a></center>
					<%
				}
			}
		}

	} catch (Exception e) {
		e.printStackTrace();
	}
%><table width="100%">
	<tr>
		<td width="33%" style="padding-right:10px"><h2>About Us</h2></td>
		<td width="33%" style="padding-left:10px;padding-right:10px"><h2>Where We Are</h2></td>
		<td width="33%" style="padding-left:10px"><h2>About Our Games</h2></td>
	</tr>
	<tr>
		<td style="text-align:left;vertical-align:top;padding-right:10px"><img src="${ctx }/images/100_0208_resize.jpg" style="float:left;padding-right:5px"/>For nearly four decades, Winter War has been providing a place for tabletop gaming enthusiasts to come together to express their passion in a no-frills and no distractions atmosphere.  Independently managed for over thirty five years, we have endeavored to preserve and promote the very essence of the gaming community, <i>the games</i>. Located in Champaign-Urbana, IL, Winter War provides a relaxed gaming atmosphere with an almost limitless variety of gaming to be had and friends to be made. We are also dedicated to the promotion of gaming in our younger generation, offering a wide variety of kid-friendly gaming and family oriented events.</td>
		<td style="text-align:left;vertical-align:top;padding-left:10px;padding-right:10px"><img src="${ctx }/images/30805_b1_resize.jpg" style="float:left;padding-right:5px"/>Located at the <a href="http://www.hawthorn.com/Hawthorn/control/Booking/property_info?propertyId=30805&brandInfo=BH&cid=ROMLBCHW">Hawthorn Suites</a> in downtown Champaign-Urbana, our con attendees are privileged to such amenities as
			<ul>
				<li>Free Parking</li>
				<li>Affordable On-Site Meals</li>
				<li>On Site ATM</li>
			</ul>
			and access to all of downtown's many fine dining and entertainment establishments. The Hawthorn Suites are located at 101 Trade Center Drive, Champaign, IL 61820, and can be reached by phone at (217) 398-3400. <i>Mention that you are attending Winter War to learn about the convention room discount!&nbsp;</i>
		</td>
		<td style="text-align:left;vertical-align:top;padding-left:10px"><img src="${ctx }/images/100_0203_resize.jpg" style="float:right;padding-left:5px"/>No matter what your interests in table-top gaming, experience level, or age, Winter War has an event to suit your tastes.  From role playing to World War II combat simulations to collectible card games, we have it all.  Winter War is even home to one of the area's premier <i>Advanced Squad Leader</i> tournaments.  Take a look at our <a href="${ctx }/history.jsp">past conventions</a> for a taste of what types of games Winter War has offered in the past.  Also, hop on our <a href="http://games.groups.yahoo.com/group/winter_war_con/">mailing list</a> to discuss what you would like to see. We welcome anyone who would like to try their hand at running an event, even if it is your first time!</td>
	</tr>
</table>
